fix bug with prompt