Fix bug related to installing directory