fixed  bubble sort