Fixed error caused by the config file handler

Fixed an error caused by the config file handler and it's initialization
order.