fix check_state_result
Merge pull request #9290 from jeroennijhof/master

fix check_state_result