fix return value warning