Invoke ack callback correctly.