Fix for the runtime error submitted.

Hello Dave.

I've fixed my mistake. Sorry again for the trouble it caused.

Cheers,

joce.