fix prompt not showing bug