Fixed possible loading bug.