Fixed a bug in isotope.cpp.