Fixed message representative weight checking

Variable used to hold weight was not being reset after each iteration.