fixing type conversion in checking config