fixed absent directory when first executed