fixed bug #158