restore a moved placement of the assert taken out in the previous commit