Fix the unexpected error which occurs during a file load