Fixed so that does not remove elements as empty if they have a 'long' property.