fix crash for clicking loading while loading paths