Fixed a bug that caused it to read one line past the configuration.