Background rendering bugfix