Clean messages array