fixed bugs in storage js relate with paths.