fix bug #344