Fixed a bug with entitycamera.