Fix crash color picker in layer selection