fix by Anders Holst: optimize ConfigInteger clamping