fix bubble sort