Fixed some bugs generated from internationalization.