Fixed bug on rotating tool.