bug in recalirbration script and sampleConfig