fix logic issue with WCE upload