Fix dir error.
Fix loading bug.