Alternate fix for reset_modes().

Fixes a small oversight in reset_modes().