Fix call to commit()