Fixed bug when adding non-recognised files