fix for bad math in scenario window