Fix bug skipping all nodes if more than one in compact mode