fix completion bug.