Fix a bug in LoadError