bugfix for loading without sql