fix error when opening c/cpp files