Fixing the rotation on edit bug

Signed-off-by: Alan Gardner <alan@armoin.com>