error saving set style and type