Fixed the bug when uploading text