fix bug in finding functions