Fix bug in metadata