replacing # with . in the file name and pattern
fixing NPE