Fix inline function triggering bug