Enum bugs fixed on write.