fixed tricky bug where scalars were reset on adjmat load