Fix case when there are no position objects.