fixes cross browser issues