fixed bug #52