fixing issue with empty stats in commit