fixing bad fs call