fix bug with no ROOTPATH