getFileName bug fixed