Fix prompt detection