fixed some bugs in fileHandler from findbugs