Bug fixed deleting vector of pointers