Fix check to see if element is there already.