Little error in function
commit