Fix bug in rstate.