fix minor memory leak
remove false assertion