fix completion with slash or space depending on the context.