Fixed the rotation_word() function