Fixed: problem when the quote template was not created