Fixed a bug when decoding payload IDs.