fixed bug #51