fix the bug that running console log will be clear after saving source file.