missing case for temporary queue caused null pointer exceptions