fixed an error in create queue