bugfix - npe if no loaders exist