fix completion bug