fix auto insert require bug