reference search fix for function calls that are in a variable init
function