Fixed parseMsg function by fixing statement that obtained postfix