fix wrong dir issue