fix ruby2.0 compat