Fixed readonly bugs in enum