minor bugfix in messages system