fix: Room.history, index out of range issue.