fix reloading bug