fixed bug with config string to int