Fix background rendering not handled correctly.