Fixed insert update issue