That didnt work either. And yes both are set to NaN. This did the same, well not exactly. It didnt even set my text. It just gave an error in my output panel :

undefined = NaN
undefined = NaN