fix to metadata route impl