fix for capability with ruby 1.9.1