fixed serious xpehh calculation bug