fix filename bugs