fix number of colors not getting saved