Bugfix for uninitialized stat directory