Bug fix (mainly noticed in the BG renderer)