fix undefined root var