Fixed retrying bug