Fixed normal generation bug