Fixes bug that was causing word selections not to stick.