Fix files tab menu reset when file changes