Fixed a bug for GPDB 41