fix for file name check