Serious performance bug with Instanced Static Mesh

I have made this correction, thanks for pointing that out.