Fixed a bug: getHistoryAsString called getHistory method with arguments that were in wrong order