fix reloading problem