Update gems.
Fix query, one at a time.
Fix query, one at a time.