fix wrong access to unallocated block in queue