Shell sort fix