fix reading queue decl