fixing bug with commandQueue