Changed enumeration type comparing.