Fixed itemwait with itempatt and issues in the run queue