Fix assert exception