Minor bug fixes

Bugs caused by last commit on SetPacketType methods.