Fix bug in nbody