Fixed my Array function