small bug fix when changing root targets