Fix broken metadata constraints