fixes a small bug that prevented changes in the comment symbol on writing


closes #790