fix language check