It's hard to comment your code as you just posted the get-part, but not where the values are set.

It would be more helpful if you could post a code that could be run standalone.

Regards,
Pegamode.