Fixed issue where chatmessages would disappear, also closes #6.