Try to fix rotation bug in rulergraphics