fix retry on error