Fixed preferred language check