Fixed prompt issue after completion of user query