 		}
 
 		private function updateFile(e:Event = null):void {
-			if(!publishedFile) {
+			if(!publishedFile || publishedFile == WorkshopConstants.PUBLISHEDFILEID_Invalid) {
 				log("No file handle set, publish or enumerate first");
 				return;
 			}

		private function deletePublishedFile(e:Event = null):void {
			if(!Steamworks.isReady) return;

			if(!publishedFile) {
				log("No file handle set, publish or enumerate first");
				return;
			}


					publishedFile = Steamworks.publishWorkshopFileResult();
					log("File published as " + publishedFile);
					if (publishedFile == WorkshopConstants.PUBLISHEDFILEID_Invalid) {
						log("FAILED!");
						break;
					}

					log("subscribePublishedFile(...) == " + Steamworks.subscribePublishedFile(publishedFile));
					break;
				case SteamConstants.RESPONSE_OnEnumerateUserSubscribedFiles:
