Array subscripting change. Enum exception