queryframe: fix search
use register count