bug related to locale fixed