fix theme change isssue in firefox