fixed bug where normals were not correct in some cases