fixed a bug where an inline function was not binded