fix bug that cannot return from loading failed