fix word select bugs