Fixed the group function in queueOverlay