fix update to insert