fix assert for release