fix confusion between commit and checkout