Fixed return compile error in state/state.go