fixed a loading bug