fix for GPCONSOLE-7

Hi Bert

I fixed the issue I reported some time ago, maybe it'll be useful

Regards
Kamil Mikolajczyk