Fixed creation if file does not exist.