fix for gpdb