fix missing assertion

.should missing (thanks @p0deje)