Fixing stat execution