minor bugfix in filename creating