fixed missing config variable bug. #18. Thanks olfan.