fix resetting message number that belongs to a client