Fix entities not always shown when they have no optimization distance.