Scripts to fix map rotation problem