fixed scan bug. bbox vis needs a fix.