Turned warning into assertion