Fixed logic bug in parsing config (Closes: #349)