fix pqcur minit and mshutdown