Change bptscanitr to support scan empty index