fixed bug where files base were set to something it shouldn't