fix bug #389