fixed nullpointer in file name