Fix bug for initialize hive/emr_hive templates