fixed load state bug.