fixed Messages crash