fix bug, the pure data size may < raw data size, so should use the pure data size instead of raw size in the phase4