bug fix

fix error when only one primary mass is inputted with a reference mass.