Fix glitchy rendering of effects