fix error in insert statement