Everytime I press Apply, it opens a new file under title/FOLDER/FILENAME

It worked in the beginning but now its a weird bug