Fix the brush dialog initialization bug.