Fixed TypeError in file stat producer