Trying to fix SOI

For some reason when running the SOI (Sphere of Influence) is always equal to the distance from the sun. Obviously this isn't right (if it were the sun would be in the planets orbit, as would all the other planets), and so I am looking to fix it.