bugfix insertion sort