Fixing namespace mismatch in function ref