fix return value in inline lookup functions