fix constant lookup issue