Fix the insert operation