fix the nan in pot angles, though a dirty fixing