Remove some delete in order to avoid segfault. One day every pointer will ve handle utterly.