Object freeze on enum