fixed a duplicate callback case in reading the config