Fix bug: use config after received HUP signal