array bug fix

array bug fix for two method...