Revert "Assertion removed"

This reverts commit 9d067e9202cee89ed9241ca2d41b8e08090a7d2f.