fixes bug #68

See bug #68 for more information.