Now getValidStates() isn't returning null.