fixed activeItem bug