fixed cache webui uri bug and file initialisation bug