Fixed list function counting file descriptions