Fixed bug in account details API

Change-Id: Ibd42d22d058e6eb655480604c8c46250f2728c92