Fix opening tabs on error