fix bug if there is no cookie about language code