fixed the main bug seen when using non uniform scaling