fix init bug, if the file already exitst, read values directly from file