Why is it removign the first element