[Fixed #64] Fix storing of cloudName and templateId variables