fixes orientation map generation bug