Fixed selected page

Changed the where clause of Selected option so that selected files as empty string does not appear in the selected page