Fix avatar dialog firefox issue