fix rotation with edge insets