fix bubble() bugs, fix bugs on not using the bubble results