Calling getAccountHistory more than once returns error