fixed bug #50