fixed bug in commit script