fixed bug in MAC calculation on callback and success