Updated the logic for storing old values of input elements for calc fields. This should fix bugs with FireFox and select elements.