fixed function in chroot