fixed the config file casting to int