fixed bug #49