fix bugs
init the file