fixed multiple messages error