Fix overstrict assertion