Bug fix on config parse