fix style for safari and firefox