resolved a bug with interrupted bubble sort