Fix bug in recurrences generation when allocating bacwards

When allocating backwards the start date of the task was being
calculated incorrectly.