Fix gem dependency
Fix deprecation warning