Fixed flashing graphics bug.