bug fixed for message tag