fix function check lang