Fixing error in logging filename