Revert "Another assertion removed"

This reverts commit 8d8a454b52da0607ce7073db9037e869a81dc632.