Fixed selectall and selectnone issue