fix automatic filename attaching