Fix bugs in loading is read