fix issue 3300 with doit()