fix negative distribution condition