fixed removing undefined tank