Fixed bug to config