fixed bug #145