Fixed an error on a null filed insert