Bugfix with gems.