Fixes bugs with camera and transform