fix ruby2 compat