fixed bug in rotation to work with Miabots