modify for #4600

see mapserver/mapserver#4600