Fix attribute table lookup