Resolving commit error