fix lot calc