fixed bug with invariant hemi in brush function