fix upside down assert