Fixed #5704: Fixed a bug of GUIReader

Fixed a bug of GUIReader