edit sale created but causing out of bounds exception