Fixed bug regarding files collection