Fixed console to correctly print prompt after query.