fix wrong dir bug