fixed bug #159