corrected references to the enum states, so they reference the static enum and not a normal one