fix return result of ack method