Fix stream comparison