Fix json template path
Change clonePrefix logic
minor fix