Fix UI bug in Firefox