Fixed GetHistory() duplicates bug.
Fixed GetChatHistory() duplicates bug