Already added to internal bug list: Rotating an object sometimes rotates by less than 90* - #28 by Silent137
Pretty sure someone has a plugin that allows you to fix rotation issues – forgot who though (someone help me out here). You could use that, or modify it so it happens automatically (assuming it doesn’t already)