Fixed an issue where viewing messages would crash the application.