fix lookup of refined attribute