fixed localization behavior when auto improve urls params