Fix bugs related to format source code