Fixed check files crash.