fix error in nebula position calculation