Fix bug with brush resolution