Fix root.bounds is undefined