Fixed ifs in UploadSketchCommand