commit: resolve cannot store data error, cannot load from file when data get bigger