Fixed ArrayOutOfBoundException when removing duplicates from recorder ui