fix updating dates