Minor bug fix when calculating parallax