Fix for IE failing with the selection