fix firefox rotate bug