Fix the prompt detection again