Fixed issue of unselected element also for file plugin