The variable name was not the same on function declaration and definition/annotations and this was confusing GIR scanner.