Fix for #269.

Hi Bas,

Fix for #269.

Cheers,

Gareth