Fixed a bug where camera went out of range