fix catch regex mismatch