Fix various bugs when dispatching configuration