fix filename truncating