clear useless code
fix BrushSizeBar bug