Fixed errors in handling packetIn messages