fixed div#messages strcture construction. fixes #2