fix insert check