fixed long-line bug for prompt