creating files bugfix