fix for tests and an Opera issue