Fixed IFun bug