Why does it make me commit twice sometimes