Fix for issue #239

Fix for issue #239 and also corrected to form useful for config file.