fix raise error if execute insert statement