fix funny insert order