Fix additional exception caused when changing look and feels.