fix for reference loading in folder mode