fix assertion that were always true