fixed null filename when code_init