fix broken language filtering