Attempting fixing issue when calling query after failure.