Fixed bug with addfile