fix for when loader is not defined