fix bug with version pg