fixed the 2G file limitation problem and offline exit problem