Fix infinite loop bug in configuration parsing