fix inserting consult bug