ROOTDIR setup bug