fixed cause of error in inserting