Fixed duplicate commitment bug for creating new commitments, also fixed
the bugs created from dev merging.