Fix brush parameters and types