fix configuration type check.