fix load path check