fix the insert