handle nil commit