Fixed some bugs that happened with using mouse for camera control