queue bug fixed