array bug fix

array bug fix for some method...