fix assert for debug mode