Fix metadata get reference