bug fix

Needs testing by mercime as I am unable to duplicate the error.
See issues/2