fixed minor state validation bug