rewrite assert call

so code "assert(FALSE)" doesn't occur