Fix 171

Fixed bug #171