Fixed typo and passing wrong config object

Signed-off-by: Christian Inci <chris.pcguy.inci@gmail.com>