fixed root bug