fixed pg disconect