fixed bug in specifying file path