fixed another bug in load_from_file where the wrong message class was used