fix ArrayIndexOutOfBoundsException in accounts