changed end of messages set to last message

changed the end of messages set variable to be set high for the last
message in the sequence, as it should be.