fixed rotation bug for camera