Fix bug that hid remove icon from elements that were added