fixed bug in chang currency function