fixed logic bug where lums got overwritten by re-calculated value when it detected lim