fix func call