bug fixes for GPDOM