bug in random rotate 1