fix component dir error