fixed another bug after upload file