Fix broken assert