Fixed incorrect output filname length