fix for #6 'handle missing gems keys'