Fixes #203
Merge pull request #227 from debugger22/ibf_int_to_func

An attempt to fix #203