fixes GSDOCHMOD #627