fix infinte orbit issue