Remove shared_size if it's zero