Simple fix for the flickering.