WritePolicy sendKey effect

Thanks @wchu ,

I saw the change recently and I think this miscalculation which resluted in AIOBE might have have been causing issues related to data mismatch.

Thanks for fixing it.