bug fix of the block rotation.