Fixed dataset state setter.