Fixed bugs with limiting number of commits