fixing the buf for reading the options from conf file, value was not getting read