fix check for message change