bug fix on fx frontier calculation