Fixed queue causing segmentation faults