[bug fixed]objectatindex beyond bounds error fixed