tried to fix metadata clear and failed