should fix crashes when updating from old versions (#316)