fixed bug with FileCreator when  function called instead of