Fixed bug on config