Adjusting the initial parameters of the distribution calculation eliminated the error. Thank you all for the discussion.