Fix an assert to look at the right objcore