Commit one by one otherwise commit fails