Fixed file directory bug