Correct a major problem in calculating predicted displacement in occam inversion.