fix bug #327