Fix code completion intermittently not working.