fixed aijaz selectall and unselectall bug