Fix remove from array in layouting queue