Tweak rotate

Signed-off-by: Kaz <purec.julien@gmail.com>