Fixed bugs with using configuration options