Fix +1 error in server keys dist. code