bug fix in brush