bugfix in loaddat