fix path bug & init impl of #621