Fix loaded languages check