Bugfixes on filetypes with no favorites, updated global variables