Made avatar change compatible with Mac