Thanks Barry,

I have fixed the error. Indeed, It's odd it is working. Compiler magic I guess!