bug fixes for GPJSON