bug: Fix null as language when adding constraint through menu