fix view config check by ref