fix retry cache not deleting bug