Fix assertion method