(4)Notwithstanding anything contained in sub-section (3), if, after the case is referred to the Land Acquisition Officer under the said sub-section (3) but before he finally determined the amount of compensation, such amount is determined by agreement between the State Government and the person to be compensated, the compensation shall be determined by the Land Acquisition Officer in accordance with such agreement.