Fixed wrong rotation in polygon drawing