fixed wrong return value while language check