fix broken assert