corridors: fixed portals iteration (was skipping the last portal); proper dequeue size.