Fixed small bug in gather metadata - wrong params.