Select is not closing after backspace over text