Fixing the "blinking" bug.