Updating array references to point at the right get parameter