fix const lookup