fix bug in consult module