Fixed bugs for top-p/b fragmentation