Tilovell issue749

A bugfix for PR #827.
 For #749