fixed error in insert statement