fix gripper conditions