fix: bug in catch code

fixed bug in catch code of the LoadState