bugfix, wrong file creation