reducer did not take into account last record