Fixed commit behavior

It wasn't commiting the commands