fixed the label not being added to the metadata page file, and added checks for meta type directories before creating.