fix warnings in inner_scan/outer_scan