resist invalid languages