Fix metadata endpoint