Bug fix: seg fault + yaml conf file