Fix camera orientation functions