Fix allow function

Impossible to add more than one file/directory before this fix