Fix parse armor packet function.