resolve index problem in gui