Fix prompt and initial clearing bug