fixed bug caused by inconsistency in config