Fixed 90 degree rotation problem