fix query in immediate edit route