Correcting the according/refresh logic