solve loading bug