fix bug in accounts