Fixing rendering of panel background.