fix bug for context missing with wrong past date commit