fixed some dumb errors in FileHandler