fix bug #345