Use loop for getting frames, fix for jruby 1.7.6