fixed bug #171