Config parsing fix

Fixes issue #1276.