Firefox and iOS Safari fixes