Fix config error and typo

#362