fix: region out of visible region.
other minor fix.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>