fix bug #498