fix an error with promt