Fixing bug on metadata_template.py