fix: random state check