squashed numerical stability problem that was causing a hang