Fixed bug onpause.
Camera still need fixing.