fixed error in gui