fix minor bugs

fix hardcode template location.