Fix nil commit problem?