Fix inline function