restore the assert I removed mistakenly on the previous commit.