math: tweak how impossible states are handled