array index out of bound problem fixed in account window