fix bug #336