Fixed last commit, retry_count was shifted by 1