fix a bug in protexttextext()