Fixed all layer rotating issues.