Fix extra delete that segfaults