Fix infinite reloading.