standby test and fix some bugs

can you add a comment for this? i have no idea why we need to change activeSize to -1.