fix some brush and BrushRevert bugs

Signed-off-by: anti-freak <antifreak2011@gmail.com>