fixed bug with account serialization