fix object's rotation

If object's state == 2,
set object rotation value