Fixed inconsistencies in navigation when removing invalid files