Avatar setting is discarded when clicking cancel