try to fix build error

"val" is not declared [...]