Fixed local dir bug