bug fifed (nan in xpehh and ihs)