Fixed undefined queue. #812