fixing annoying bug that makes each tab active when downloading photos