fixed bubbleDown method