Fixed a bug in calculating the coordinates of hydrogen atoms of inactive frames