fixed edit lang reg bug