Bugged xi calculation?