Fixed crash on brush