Fix filter for constraints