[ENTESB-2380] Previous commit always read from the beginning of the file