fixed rotation bug related to rank setting