fix https://github.com/RubyLouvre/avalon/issues/261