stat directory bug fixed