fixing assertion