Fixed rotation flag in main