Fix bug of building report

* The bug was that the default case of selecting commits
  was not taken into account