fixed pg/mys compatibility