Make assertion less brittle