Fix wrong retry param. Fix missing variable.