reload fixes

fix chroot and invalid pointer when reloading