fixed selection bug, located bug when scanning tags other than 'all'