Fixed edge case when no instances are present