fixed parsing logic issue in config parsing

This fixes issue #349 if you just switch the order around.