fix completion for magics