[lib] fixed 'loading' & 'path' bug