Fixed small bugs with the config