fixed bug with prompt header appearing when there's no prompt