fixed completion bug