Fix incorrect tasks retry calls