fixed bug #45