fix bug #3045