fix for saving empty comments and comments with empty lines