fixes reset selection problem in the file explorer