Fixed Bug @ nested ifs in inline function