fix positioning when rotated