fixed bug with persisting attributes as sets