minor fix to fix in filename logic