diff --git a/src/vcard.py b/src/vcard.py
index 24e457158ffdd33e7bf4c8ebcfb97c24d1274452..c78a41cc41f2cec7f31ca7d71940380f0d39a72a 100644
--- a/src/vcard.py
+++ b/src/vcard.py
@@ -74,6 +74,7 @@ class Vcard_window:
 	def on_clear_button_clicked(self, widget):
 		# empty the image
 		self.xml.get_widget('PHOTO_image').set_from_pixbuf(None)
+		self.avatar_encoded = None
 
 	def image_is_ok(self, image):
 		if not os.path.exists(image):