bug in messages fixed