Fixes sync in ruby 1.9