fix Layer::set color from optimization merge