small bug fix for NSArray and NSMutableArray