bug fixing for message