fix bug in account controller