Fixed problem with metadata values being stored as strings.