fixed possible bug in action packet parsing