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