environment orientation fix