Fix bug in the account_states returned value and fixing some issues with the account related functions for tv episodes.