Fixed metadata.c switch case return value