Stupid error on array slice