fix: prevent error when selecting a color in the color editor (#115)