There is something wrong with my array operations!