fix segv, double delete 1 pointer