Fixed bug where verifying tag failed