Workaround Ruby 2 GC bug