Fix to not allow the same file to be added