fix the qbms gateway