compile warning fix: fix return values.