fixed UploadBehavior bugs.