server: use correct index even if contols are out of order