fix return rid after postDocument