fixed error in retrying part